/* 
  Copyright (c) SilverLining 2015
  Date:    2016-1-7
  File:    json_format_exception.cpp  
  Description: 

*/

#include "stdafx.h"


using namespace m;
using namespace m::error;

namespace m
{
	namespace text
	{
		json_format_exception::json_format_exception()
			: BaseType(), 
			Line(0), 
			Col(0)
		{
		}

		json_format_exception::json_format_exception(json_format_exception & other)
			: BaseType(other),
			Line(other.Line),
			Col(other.Col)
		{
		}

		json_format_exception::json_format_exception(const int & line, const int & col, const char * const & message)
			: BaseType(MONORET(FACILITY_JSON, ERROR_BAD_FORMAT), message),
			Line(line),
			Col(col)
		{
		}

		json_format_exception & json_format_exception::operator=(const json_format_exception & other)
		{
			BaseType::operator=(other);
			this->Line = other.Line;
			this->Col = other.Col;
			return *this;
		}
	}
}